//
//  FSWTestViewController.m
//  voicetip_ios
//
//  Created by 伏圣文 on 2019/11/28.
//  Copyright © 2019 fusw. All rights reserved.
//

#import "FSWTestViewController.h"
#import "FSWTestViewCell.h"
@interface FSWTestViewController ()<HMTPayStyleViewCellDelegate>

@end

@implementation FSWTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    if (@available(iOS 15.0, *)) {
        self.tableview.sectionHeaderTopPadding = 0;
    }
}
#pragma mark - Table view data source

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 50;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
     FSWTestViewCell* cell = [tableView dequeueReusableCellWithIdentifier:@"testCell"];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
    cell.okButton.tag = indexPath.row;
    cell.delegate = self;
     return cell;
   
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 55;
}

-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{
    return 0.0001;
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
     XCLog(@"-------%zd",indexPath.row);
    
}

-(void)hmtPayStyleViewCellSelectBtn:(NSInteger )index{
    
    if(nil == 0){
         XCLog(@"---nil----%zd",index);
    }
    if(false == 0){
         XCLog(@"--false-----%zd",index);
    }
    
    if(false == nil){
         XCLog(@"----fa  lse---%zd",index);
    }
    XCLog(@"-------%zd",index);
}
@end
